package com.cw.wh.base;

/**
 * 返回code
 */
public enum Rcode {

    /**
     * 正常返回
     */
    SUCCESS(0 , "操作成功"),
    PARAM_ERR(40001 , "参数错误"),
    SQL_ERR(50001 , "执行错误"),;

    private int code;

    private String message;

    Rcode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
